package collection.list;

import java.util.ArrayList;
import java.util.Collections;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "1", "1", "1", "2", "1", "1");
        list.removeIf("1"::equals);
        System.out.println(list);
    }
}
